#include <stdio.h>
#include <math.h>
int len(int n){
	int x = 1;
	while(n>9){
		x++;
		n = n/10;
	}return x;
}int main(){
	int n,x,p;
	scanf("%d",&n);
	for(int i=len(n)-1;i>0;i--){
		p = pow(10,i);
		x = n/p;
		
		n = n%p;
		printf("%d",x);printf(" ");
	}printf("%d",n);printf(" ");
	return 0;
}

